package com.qianfeng.smartdevices.mapper;

import com.qianfeng.smartdevices.pojo.Device;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceMapper {

    List<Device> findAllDevice(@Param("address") String address, @Param("status") String status,@Param("categoryid") Long categoryid,@Param("areaid") Long areaid);

    void addDevice(Device device) ;

    int updateDevice(Device device);
    int deleteDeviceById(@Param("ids") List<String> ids);

    void updateOffLine(@Param("uuid") String uuid,@Param("status") String status);
}
